package architect.design.patterns.structural.adapter;

/**
 * 适配器模式
 *
 * @author guanxin
 * @date 2018/5/5 14:24
 */

public class LaptopCase {

    public static void main(String[] args) {
        VgaDisplay vgaDisplay = new VgaDisplay();
        VgaToHdmiAdapter adapter = new VgaToHdmiAdapter(vgaDisplay);
        // HDMI接口具有了VGA接口的功能
        adapter.openHdmi();
    }
}
